{layout name="p/base"}
    <div class="row">
      <div class="col-lg-12">
        <h1>营地管理 <small>营地信息列表</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li class="active"><i class="fa fa-table"></i> 营地信息列表</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以添加、修改、删除营地信息 
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        
        <!-- <div class="form-group">
        <a href="/camp/create" class="btn btn-primary" type="submit">增加营地</a>
        </div> -->
      </div>
        <div class="table-responsive">
          <table class="table table-bordered table-hover table-striped tablesorter">
            <thead>
              <tr>
                <th><div class="checker"><span><input type="checkbox" name=""></span></div></th>
                <th>营地编号</th>
                <th>营地名称</th>
                <th>营地类型</th>
                <th>营地星级</th>
                <th>泊位数量</th>
                <th>所属分公司</th>
                <th>地址</th>
                <th>营地联系方式</th>
                <th>营地旅行币基数</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
            <form id='camp' class="form-horizontal" role="form" action="/camp/delete" method="post">
            <input type="hidden" id='method' name="_method" value="DELETE">
            <input type="hidden" name="status" value="-1" />
              {foreach $list as $vo}
              <tr>
                <td><div class="checker"><span><input type="checkbox" name="ids[]" value="{$vo.id}" ></span></div></td>
                <td>{$vo.number}</td>
                <td><a href="###">{$vo.name}</a></td>
                <td>{$vo.camptypes.name}</td>
                <td>{$vo.campgrades.name}</td>
                <td>{$vo.count}</td>
                <td>{$vo.branch.branch_name}</td>
                <td>{$vo.address}</td>
                <td>{$vo.tel}</td>
                <td>{$vo.travel_money_base}</td>
                <td><a href="/camp/{$vo.id}/edit">编辑</a> | <a href="/camp/{$vo.id}">查看详情</a></td>
              </tr>
            {/foreach}
            </form>
            </tbody>
          </table>
        </div>
      </div>
      <div class="col-sm-12">
      </div>
    </div>
    <!-- /.row -->
    <script type="text/javascript" src="/jquery.js"></script>
    <script type="text/javascript">
      $(document).ready(function(){
        $("#del").click(function(){
          $("#camp").submit();
          });
        $("#setstaut").click(function(){
        $("#camp").attr('action','/camp/setstatus');
        $("#camp").submit();
          });
        });
    </script>

